package com.dxysun.design.mediator;

public class Main
{
	public static void main(String[] args)
	{
		ConcreteMediator mediator = new ConcreteMediator();
		ConcreteColleagueA concreteColleagueA = new ConcreteColleagueA(mediator);
		ConcreteColleagueB concreteColleagueB = new ConcreteColleagueB(mediator);

		mediator.setConcreteColleagueA(concreteColleagueA);
		mediator.setConcreteColleagueB(concreteColleagueB);

		concreteColleagueA.depMethodA();
		concreteColleagueB.depMethodB();
	}
}
